package com.atguigu.orderservice.client;

import com.atguigu.commonutils.coursevo.CourseInfoVo;
import com.atguigu.commonutils.ordervo.CourseWebVoOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@Component
@FeignClient(name="service-edu",fallbackFactory=EduClientFallbackFactory.class)
public interface EduClientService {

    //根据课程id查询课程信息
    @GetMapping("/eduservice/coursefront/getCourseInfoOrder/{id}")
    public CourseInfoVo getCourseInfoOrder(@PathVariable("id") String id);

}
